using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using Thaire.Investment.Domains.Transaction;
namespace Thaire.Investment.Repository
{
       
    class   EquityInstructionDetailMap : ClassMap<EquityInstructionDetail>
    {

        public EquityInstructionDetailMap()
            {
                Table("EQUITY_INSTRUCTION_DETAIL");
                Id(x => x.DetailID,"INSTRUCTION_DETAIL_ID").GeneratedBy.Native();

                Map(x => x.HeaderID,"INSTRUCTION_HEADER_ID");
 Map(x => x.InstrumentHeaderID,"INSTRUMENT_HEADER_ID");
 Map(x => x.InstrumentTransactionID,"INSTRUMENT_TRANSACTION_ID");
 Map(x => x.TransactionType,"INSTRUCTION_TRANSACTION_TYPE");
 Map(x => x.SecName,"INSTRUCTION_SEC_NAME");
 Map(x => x.CounterpartyName,"INSTRUCTION_COUNTERPARTY_NAME");
 Map(x => x.Unit,"INSTRUCTION_UNIT");
 Map(x => x.PriceUnit,"INSTRUCTION_PRICE_UNIT");
 Map(x => x.GrossAmount,"INSTRUCTION_GROSS_AMOUNT");
 Map(x => x.ComAmount,"INSTRUCTION_COM_AMOUNT");
 Map(x => x.VatAmount,"INSTRUCTION_VAT_AMOUNT");
 Map(x => x.PurchaseValueNet,"INSTRUCTION_PURCHASE_VALUE_NET");
 Map(x => x.WHTaxAmount,"INSTRUCTION_WH_TAX_AMOUNT");
 Map(x => x.NetSettle,"INSTRUCTION_NET_SETTLE");
 Map(x => x.TypeofpaymentName,"INSTRUCTION_TYPEOFPAYMENT_NAME");
 Map(x => x.RefNO,"INSTRUCTION_REF_NO");
 Map(x => x.CreateDate,"CREATE_DATE");
 Map(x => x.CreateBY,"CREATE_BY");

            }


    }

}